#!/usr/bin/env python
#
#	snlp:	snl parser
#
#	This script mainly handles commandline input and properly invokes the snl
#	parser
#

import sys								# System functionality
from optparse import OptionParser		# Pre-made commanline parser

########
# Program starts here :)
########

# Parse the commandline
parser = OptionParser(usage="usage: %prog [options] source.snl")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", help="write information to output")
parser.add_option("-q", "--quiet", action="store_false", dest="verbose", help="no console output")

parser.add_option("-o", "--output", dest="output", help="write output to secific file")

(options, args) = parser.parse_args()

# if no commandline arguments are given give the user minimal help
if len(sys.argv[1:]) == 0:
	sys.stderr.write("snlp: no input files\n")
	sys.stderr.write("Try 'snlp --help'\n")
	sys.exit(1)
# The user provided some arguments, parse them
else:
	for a in args:
		sys.stdout.write(a + "\n")
sys.exit(0)
